package com.eee.xiang.market.beans;

import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

public class TCargo {
    private String cargoId;

    private String cargoName;

    private BigDecimal cargoPrice;

    private BigDecimal cargoRetailPrice;

    private Integer cargoNum;

    private int buyNum;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date expireTime;

    private Short deleteFlag;

    private Date createDatetime;

    private String cargoUrl;

    public String getCargoId() {
        return cargoId;
    }

    public void setCargoId(String cargoId) {
        this.cargoId = cargoId == null ? null : cargoId.trim();
    }

    public String getCargoName() {
        return cargoName;
    }

    public void setCargoName(String cargoName) {
        this.cargoName = cargoName == null ? null : cargoName.trim();
    }

    public BigDecimal getCargoPrice() {
        return cargoPrice;
    }

    public void setCargoPrice(BigDecimal cargoPrice) {
        this.cargoPrice = cargoPrice;
    }

    public BigDecimal getCargoRetailPrice() {
        return cargoRetailPrice;
    }

    public void setCargoRetailPrice(BigDecimal cargoRetailPrice) {
        this.cargoRetailPrice = cargoRetailPrice;
    }

    public Integer getCargoNum() {
        return cargoNum;
    }

    public void setCargoNum(Integer cargoNum) {
        this.cargoNum = cargoNum;
    }

    public Date getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(Date expireTime) {
        this.expireTime = expireTime;
    }

    public Short getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Short deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    public Date getCreateDatetime() {
        return createDatetime;
    }

    public void setCreateDatetime(Date createDatetime) {
        this.createDatetime = createDatetime;
    }

    public String getCargoUrl() {
        return cargoUrl;
    }

    public void setCargoUrl(String cargoUrl) {
        this.cargoUrl = cargoUrl == null ? null : cargoUrl.trim();
    }

    public int getBuyNum() {
        return buyNum;
    }

    public void setBuyNum(int buyNum) {
        this.buyNum = buyNum;
    }
}